package com.situ.water_Invoice.controller;


import com.situ.util.ResponseData;
import com.situ.water_Invoice.mapper.IvIninvoiceMapper;
import com.situ.water_Invoice.mapper.IvInvoiceMapper;
import com.situ.water_Invoice.pojo.FPZB;
import com.situ.water_Invoice.pojo.IvIninvoice;
import com.situ.water_Invoice.pojo.IvInvoice;
import com.situ.water_Invoice.service.IvInvoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Angel
 * @since 2020-12-01
 */
@RestController
//@RequestMapping("/iv-invoice")
public class IvInvoiceController{
    @Autowired
    IvInvoiceMapper ivInvoiceMapper;
    //分页
    @ResponseBody
    @RequestMapping("/FPZB")
    public List<FPZB> FPZB() {
        //创建分页参数
        List<FPZB> list = ivInvoiceMapper.FPZB();
        //获取数据
        list.forEach(System.out::println);
        return list;
    }


}

